<template>
  <!-- <img alt="Vue logo" src="./assets/logo.png">
  <HelloWorld msg="Welcome to Your Vue.js App"/> -->
  <router-view></router-view>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  components: {
    HelloWorld
  },
  created(){
    // console.log(111)
    // this.$store.dispatch('checkLogin')
    this.$router.push({
      path:sessionStorage.getItem('routeNowPath')
    })
  },
  watch:{
    $route(val1,val2){
      sessionStorage.setItem('routeNowPath', this.$route.path)
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /*margin-top: 60px;*/
  height: 100%;
}
html {
  position: absolute;
  margin: 0;
  height: 100vh;
  width: 100vw;
}

body {
  position: absolute;
  margin: 0;
  height: 100%;
  width: 100%;
}
</style>
